<?php
$this->pageTitle='Install Web System';
?>
<div class="form">
    <?php $form = $this->beginWidget('ActiveForm', $formConfig); ?>

    <h1>Step 1: System Configuration</h2>
        <p class="note"><?php echo Lang::t('Fields with "*" are required'); ?></p>

<?php echo $form->alert($model, array(
    'errorMessageHtmlOptions'=>array('class'=>'alert alert-danger'), 
    'flashHtmlOptions'=>array('class'=>'alert alert-'),
)); ?>        

        <div class="row">
            <?php echo $form->labelEx($model, 'databaseName_'); ?>
            <?php echo $form->textField($model, 'databaseName_'); ?>
            <?php echo $form->error($model, 'databaseName_'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'tablePrefix_'); ?>
            <?php echo $form->textField($model, 'tablePrefix_'); ?>
            <?php echo $form->error($model, 'tablePrefix_'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'sampleData_'); ?>
            <?php echo $form->passwordField($model, 'sampleData_'); ?>
            <?php echo $form->error($model, 'sampleData_'); ?>
        </div>

        <hr/>
        <div class="row">
            <?php echo $form->labelEx($model, 'language_'); ?>
            <?php echo $form->dropDownList($model, 'language_', $model->languageOption); ?>
            <?php echo $form->error($model, 'language_'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'email_'); ?>
            <?php echo $form->textField($model, 'email_'); ?>
            <?php echo $form->error($model, 'email_'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'username_'); ?>
            <?php echo $form->textField($model, 'username_'); ?>
            <?php echo $form->error($model, 'username_'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'password_'); ?>
            <?php echo $form->passwordField($model, 'password_'); ?>
            <?php echo $form->error($model, 'password_'); ?>
        </div>

        <div class="row">
            <?php echo $form->labelEx($model, 'password2_'); ?>
            <?php echo $form->passwordField($model, 'password2_'); ?>
            <?php echo $form->error($model, 'password2_'); ?>
        </div>

        <div class="row buttons">
            <input type="submit" value="<?php echo Lang::t('Install'); ?>" />
        </div>
        
    <?php $this->endWidget(); ?>
<!--form--></div>